<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.autocomplete.js"></script>
	
	<script>
	$(function() {
		var afilliates = new Array(); 
			<?php
			for ($i=0; $i<=count($names)-1; $i++)
			{
			echo "afilliates[".$i."] = '".$names[$i]."';";
			}
			?>
		$( "#search_afilliates" ).autocomplete({
			source: afilliates,
			matchContains: true,
			minChars: 2,
			autoFill: true
		});
	});
	</script>
    <style type="text/css">
<!--
.Estilo1 {font-size: x-large}
-->
    </style>
</head>

<body>
<table width="538" border="0" align="right">
        <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
          <td width="322"><div align="right"><span class="Estilo1"><strong> HOTELES</strong> <strong>Afiliados</strong></span></div></td>
          <td width="206"><img src="http://127.0.0.1/CodeIgniter/img/ImagePanel/afiliado.jpg" /></td>
        </tr>
        <tr>
          <td colspan="2"><div align="center"></div></td>
        </tr>
        
        <?php 
		if ($HotelsAfilliates != NULL)
		{
		foreach ($HotelsAfilliates as $row)
		{
		?>
        <tr>
          <td colspan="2"><table width="100%" border="0">
            <tr>
              <td width="16%" rowspan="4"><div><img src="http://127.0.0.1/CodeIgniter/img/logoHotels/<?php echo $row['logo']; ?>" /></div></td>
              <td width="68%"><strong>Nombre</strong>: <?php echo $row['name'];?> - <?php echo $row['type'];?></td>
              <td width="16%" rowspan="4">
              <div><img src="http://127.0.0.1/CodeIgniter/img/ImagePanel/afiliado.jpg" /><a href="<?php echo base_url(); ?>Travelagencycontroller/seeDetails/<?php echo $id_agency;?>/<?php echo $id_user;?>/<?php echo $username;?>/<?php echo $row['id_hotel']; ?>/9">Ver Detalles</a></div>            </td>
            </tr>
            <tr>
              <td><strong>Ubicacion:</strong> <?php echo $row['namePlace'];?></td>
            </tr>
            <tr>
              <td><strong>Dirección:</strong> <?php echo $row['address'];?></td>
            </tr>
            <tr>
              <td><strong>Descripción</strong>: <?php echo $row['description'];?></td>
            </tr>
          </table></td>
 		 </tr>
         <?php } //end foreach
		 } //end del if
		 else
		 {
		 ?> <tr>
          <td colspan="3"><div align="center"><strong>Actualmente NO TIENE AFILIADOS... </strong></div></td>
        </tr>
         <?php 
		 } //cierro el else
		 ?>
      </table>
</body>
</html>
